#ifndef __RENDER_VERTEX_H__
#define __RENDER_VERTEX_H__

#include "../Core/Vector2.h"
#include "../Core/Vector3.h"

namespace Render
{

	using namespace Core;
	class rtVertex
	{
	public:
		rtVector3    Position;
		rtVector2    TextureCoord;
		rtVector3    Normal;
		rtVector3    Tangents[2];
		unsigned int Color;

		void clear();

		float  operator [] (const int index) const;
		float& operator [] (const int index);

		void lerp(const rtVertex& a, const rtVertex& b, const float f);
		void lerpAll(const rtVertex& a, const rtVertex& b, const float f);

		void normalize();

		void setColor(unsigned int color);
		unsigned int getColor();
	};
}
#endif



